package TAIC.util ;

import java.util.*; 
import java.io.*;

class TransMat {
	static public void main ( String s [] ) {
		if ( s.length != 2 ) {
			System.out.println ( "Please input filename, outfile " ) ; 
			return ;
		}
		try {
			int n , m , i, j ;
			Scanner scanner = new Scanner ( new File ( s [ 0 ] ) ) ;
			PrintStream fout = new PrintStream ( new File ( s [ 1 ] ) ) ;
			/*n = Integer.valueOf ( s [ 1 ] ) ;
			m = Integer.valueOf ( s[ 2 ] ) ;*/
			n = scanner.nextInt () ;
			m = scanner.nextInt () ;
			for ( i =0 ; i < n ; i ++ ) {
				for ( j = 0 ; j < m ; j ++ ) {
					fout.print ( scanner.nextDouble () + "\t" ) ;
					scanner.nextDouble () ;
				}
				fout.println () ; 
			}	
		}
		catch ( Exception e ) {
			e.printStackTrace () ; 
		}
	}
}